<form action="<?php e_page("money","checkSubmit")?>" method="get">
    <fieldset>
        <legend></legend>
        <label for="username">用户名</label>
        <input type="text" id="username" name="username" placeholder="请输入要冻结的账号用户名">
        <input type="submit" value="冻结">
    </fieldset>
</form>


<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
        <th>手机/用户名</th>
        <th>邮箱</th>
        <th>用户类型</th>
        <th>余额状态</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['member'] as $v){?>
        <tr>
            <td><?php echo $v['id']?></td>
            <td><?php echo $v['username']?></td>
            <td><?php echo $v['email']?></td>
            <td><?php foreach($r['userType'] as $k=>$g){?>
                    <?php if($v['type']==$k)echo $g;?>
                <?php }?></td>
            <td><?php if($v['money_usable']==0){ echo "余额不可用"; } ?> /  <a href="<?php e_action("unfreezeSubmit","username={$v['username']}&enable=1")?>">解冻</a> </td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php
/** @var Page $page */
$page=$r['pages'];
?>
<?php echo $page->getPageHtml(); ?>